package com.hxiaoyi.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述
 *
 * @author 黄敬意
 * @date 2022-03-19 23:50
 **/
@RestController
public class PaymentController {

    /**获取端口号*/
    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/payment/nacos/{id}")
    public String getPayment(@PathVariable("id") Long id){
        return "这是一个nacos 端口号为：" + serverPort + "id为 " + id;
    }
}
